import { pageDefaultTitle } from "@/settings";

export function setPageTitle(routerTitle?: string): void {
    window.document.title = routerTitle
        ? `${routerTitle} | ${pageDefaultTitle}`
        : `${pageDefaultTitle}`;
}


export function isExternal(path: string): boolean {
    return /^(https?:|mailto:|tel:|\/)/.test(path);
}
